package com.ktjy.mapper.user;

import com.ktjy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    public int count();

    public List<SysUser> getUserList();

    public List<SysUser> getUsersByRealName(String realName);

    public List<SysUser> getUserListByPojo(SysUser sysUser);

    public List<SysUser> getUserListByMap(Map<String, Object> userMap);

    public List<SysUser> getUserListByParams(@Param("realName") String realName, @Param("roleId") int roleId);

    public List<SysUser> getUserListWithRoleName(SysUser sysUser);

    public List<SysUser> getUerListByRoleId(@Param("roleId") Integer roleId);
    public List<SysUser> getUserAndAddressesByUserId(@Param("userId") Integer userId);
    public int add(SysUser user);
    public int modify(SysUser user);
    public int updatePwd(@Param("id") Integer id,@Param("password") String pwd);
    public int deleteUserById(@Param("id") Integer id);
}
